using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Runtime.Serialization;

namespace WSBanking.DAO
{
	#region using
	using System.Data;
	using WSBanking.DTO;
	using WSBanking.Helpers;
	#endregion

	/// <summary>
	/// Data access object, which get data of SEBanking_Exchange table from database
	/// </summary>
	public class SEBanking_ExchangeDAO : AbstractDAO
	{
		public SEBanking_ExchangeDAO(string strPath): base(strPath)
		{
		}

		public bool Insert(SEBanking_ExchangeDTO obj)
		{
			try
			{
				base.sql = "usp_SEBanking_Exchange_Insert";
				base.InitializeCommand();
				base.AddParameter("@Card_ID_Send", SqlDbType.NVarChar, 1000, obj.Card_ID_Send);
				base.AddParameter("@Card_ID_Receive", SqlDbType.NVarChar, 1000, obj.Card_ID_Receive);
				base.AddParameter("@Exc_Balance", SqlDbType.NVarChar, 1000, obj.Exc_Balance);
				return ExecuteStoredProcedure();
			}
			catch
			{
				return false;
			}
		}
	}
}